package com.atguigu.dao;

import com.atguigu.pojo.TravelItem;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/travelItem")
public interface TravelItemDao {

    public void add(TravelItem travelItem) ;

    Page findPage(@Param("value") String queryString);

    TravelItem get(Integer id);

    void update(TravelItem travelItem);

    void delete(Integer id);

    int findTravelItemByTravelItemId(Integer id);

    List<TravelItem> findAll();

    public List<TravelItem> findTravelItemById(Integer id);
}
